package data.obj;

import java.util.LinkedList;

public enum Stats {
	CO, AG, SD, ME, RE, ST, QU, PR, EM, IN;

	public static String[] asNames(Stats[] types) {
		String[] names = new String[types.length];
		for (int i = 0; i < types.length; i++) {
			if (types[i].equals(CO))
				names[i] = "Constitution";
			
			if (types[i].equals(AG))
				names[i] = "Agility";
			
			if (types[i].equals(ME))
				names[i] = "Memory";
			
			if (types[i].equals(RE))
				names[i] = "Reasoning";
			
			if (types[i].equals(ST))
				names[i] = "Strength";
			
			if (types[i].equals(QU))
				names[i] = "Quickness";
			
			if (types[i].equals(PR))
				names[i] = "Presence";
			
			if (types[i].equals(EM))
				names[i] = "Empathy";
			
			if (types[i].equals(IN))
				names[i] = "Intuition";
			
		}
		return names;
	}

	public static Stats[] valuesForGui() {
		LinkedList<Stats> list = new LinkedList<Stats>();
		for (Stats t : values()) {

			list.add(t);
		}

		return list.toArray(new Stats[list.size()]);
	}

}
